import request from '@/utlis/request'

// 查询省份
export function getList() {
    return request({
        url: '/districtsSearch/selectProvince',
    })
}

// 查询市区
export function getCitiesList(code) {
    return request({
        url: '/districtsSearch/selectCity',
        method: 'post',
        data: { parent: code },
    });
}

//查询县 getDistrictsList
export function getDistrictsList(code) {
    return request({
        url: '/districtsSearch/selectPrefecture',
        method: 'post',
        data: { parent: code },
    });
}